import React from 'react';//不能省略

import { connect } from 'react-redux';

import Menubar from '../components/Menubar/Menubar.js';

import {sidebarContent} from '../actions/action.js';


const mapStateToProps=(state)=>{
    return{
        todos:state.sidebarqh,
    }
};

const mapDispatchToProps=(dispatch)=>{
    return{
        btnClick:(id)=>{
            dispatch(sidebarContent(id))
        }

    }
};

const MenuListQh =connect(
    mapStateToProps,
    mapDispatchToProps
)(Menubar);

export default MenuListQh;
